package com.weibo.service;

import java.util.List;
import java.util.Map;

import com.weibo.pojo.Tcomment;
import com.weibo.pojo.Tweibo;

/**
 * one interface user for weibo bussiness
 * @author vorce
 *
 */
public interface IWeiboService {

	List<Tweibo> getHomeWeiboList(Integer userId) throws Exception;

	void saveWeibo(Tweibo weibo) throws Exception;

	Map<Integer, List<Tcomment>> getCommentMap(List<Tweibo> weiboList) throws Exception;

	/**
	 * get Tweibo Object by the its id
	 * @param weiboId
	 * @return 
	 */
	Tweibo getWeiboById(Integer weiboId);

	/**
	 * delete one Tweibo Object
	 * @param weibo
	 */
	void deleteWeibo(Tweibo weibo);

}
